<?php

class UserLogout {

    public $title = 'Logout';

    function logout(){
        unset($_SESSION['is_loged']);
        unset($_SESSION['user']);
        unset($_SESSION['userName']);
    }

    public function UserLogout(){
        $this->logout();
        $_REQUEST['request']['object'] = 'gallery';
        $_REQUEST['request']['action'] = 'list';
        include_once BASEURL.'action/gallery/wrapper.php';
        new GalleryWrapper();
    }
}
?>